package com.koron.order.experiment.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.business.print.bean.dto.PrintBusinessDto;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "eam-common-web", fallbackFactory = FeignFallbackFactory.class)
public interface PrintStandardFeignService {

    @ApiOperation(value = "直接打开设计模板")
    @PostMapping("/printStandard/directDesign")
    Response<Object> directDesign(@RequestBody PrintBusinessDto dto);

    @ApiOperation(value = "获取打印模板列表-明细")
    @GetMapping("/printStandard/readPrintBusListByBusinessCode.htm")
    Response<Object> readPrintBusListByBusinessCode(@RequestParam("businessCode") String businessCode);

}
